<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap CSS-->
    <%@include file="../assets/public.jsp"%>
    <title>我的用户列表</title>

</head>
<body>
<%@include file="../assets/header.jsp"%>

<div class="d-flex align-items-stretch">
    <!-- Sidebar Navigation-->
    <%@include file="../assets/sidebar.jsp"%>
    <!-- Sidebar Navigation end-->
    <div class="page-content">
        <div class="page-header">
            <div class="container-fluid">
                <h2 class="h5 no-margin-bottom">我的关注列表</h2>
            </div>
        </div>
        <section class="no-padding-bottom">

            <div class="list-group myList">
                <ul>
                    <c:forEach var="focusUser" items="${sessionScope.focusPageEntity.data}">
                        <li class="list-group-item">
                            <c:if test="${focusUser.realName ==''||focusUser.realName ==null}">
                                <a href="${pageContext.request.contextPath}/user/user_detail?uId=${focusUser.id}">${focusUser.username}</a>
                            </c:if>
                            <c:if test="${focusUser.realName !=''||focusUser.realName !=null}">
                                <a href="${pageContext.request.contextPath}/user/user_detail?uId=${focusUser.id}">${focusUser.realName}</a>
                            </c:if>
                            <div style="float: right" class="text-right">
                                <input type="button" class="btn btn-danger un-focus" data-nfid="${focusUser.id}" value="取消关注">
                            </div>
                        </li>
                    </c:forEach>
                </ul>
                <nav class="text-center" aria-label="Page navigation">
                    <ul class="pagination">
                        <li>
                            <a href="${pageContext.request.contextPath}/user/my_user_back" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </li>
                        <c:forEach var="p" step="1" begin="${sessionScope.focusPageEntity.begin}" end="${sessionScope.focusPageEntity.end}">
                            <c:if test="${p==sessionScope.focusPageEntity.currPage}">
                                <li><a class="nav-active" href="${pageContext.request.contextPath}/user/my_user?currPage=${p}">${p}</a></li>
                            </c:if>
                            <c:if test="${p!=sessionScope.focusPageEntity.currPage}">
                                <li><a href="${pageContext.request.contextPath}/user/my_user?currPage=${p}">${p}</a></li>
                            </c:if>
                        </c:forEach>
                        <li>
                            <a href="${pageContext.request.contextPath}/user/my_user_next" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </section>

        <%@include file="../assets/footer.jsp"%>
    </div>
</div>

</body>
</html>